package com.app.game.chat;

import java.io.Serializable;
import java.text.SimpleDateFormat;

import java.util.Date;

public class Message implements Serializable{

	private String messageText;
	private String playerName;
	private Date time;
	private SimpleDateFormat formatter = new SimpleDateFormat("HH:mm");
	public void setMessageText(String messageText) {
		this.messageText = messageText;
	}
	public void setPlayerName(String playerName) {
		this.playerName = playerName;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	
	public String getCompleteMessage(){
            
		return playerName +"("+formatter.format(time) +"): "+messageText;
	}
}
